<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddBankCardToProfile extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('user_profile_personal', function (Blueprint $table) {
            $table->string('bank_card', 20)->default('')->comment('银行卡号')->after('id_card');
            $table->string('bank_id', 10)->default('')->comment('银行卡开户行')->after('bank_card');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('user_profile_personal', function (Blueprint $table) {
            //
        });
    }
}
